HAL DMA2D state and error functions migration

HAL DMA2D get state

HAL1

HAL2

HAL_DMA2D_GetState(const DMA2D_HandleTypeDef *hdma2d)
HAL_DMA2D_GetState(const hal_dma2d_handle_t *hdma2d)

Related concept: Revised and optimized HAL state machine


HAL DMA2D get error

HAL1

HAL2

HAL_DMA2D_GetError(const DMA2D_HandleTypeDef *hdma2d)
HAL_DMA2D_GetLastErrorCodes(const hal_dma2d_handle_t *hdma2d)

Related concept: Revised and optimized HAL error management